#!/usr/bin/python
#coding=utf-8

def ex():
    try:
        10*(1/0)
    except:
        print '非零异常'

def test():
    try:
        print 'main process'
        #'2'+2
        ex()
    except:
        print '有异常发生'

if __name__ == '__main__':
    try:
        test()
    except:
        print 'main 异常'